package com.aceitunaproject.server.initializer;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import com.aceitunaproject.server.equipment.Equipment;
import com.aceitunaproject.server.equipment.EquipmentLoader;
import com.aceitunaproject.server.equipment.TestUtil;
import com.aceitunaproject.server.specialability.SpecialAbility;

/**
 * 
 * Small EquipmentLoader for testing purposes
 * 
 * @author Federico Bergstein
 * 
 */
public class TestEquipmentLoader implements EquipmentLoader {

	@Override
	public Map<String, Equipment> getEquipments() {
		Map<String, Equipment> map = new HashMap<String, Equipment>();

		List<SpecialAbility> specialAbilities = new LinkedList<SpecialAbility>();

		specialAbilities.add(SpecialAbility.BUILDSETTLEMENT);

		map.put("SettlementBuildingEquipment", TestUtil
				.generateSimpleTestEquipment("SettlementBuildingEquipment",
						null, null, null, specialAbilities));
		
		map.put("InstallationBuildingEquipment", TestUtil
				.generateSimpleTestEquipment("InstallationBuildingEquipment",
						null, null, null, null));

		return map;
	}

}
